package com.qf.pojo.respVo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResp {
    private Integer code;
    private String msg;
    private Object data;
    private Long total;
    public BaseResp Ok(String msg,Object data,Long total){
        return new BaseResp(1,msg,data,total);
    }

    public BaseResp Fail(Integer code,String msg){
        return new BaseResp(code,msg,null,null);
    }
}
